#!/usr/bin/python
#Filename: inherit.py

class Fruit:
	def __init__(self, name, color):
		self.color = color
		self.name = name

	def tell(self):
		print 'Hi, I am %s, and I am %s' %(self.name, self.color)

class Apple(Fruit):
	def __init__(self, color, locate):
		Fruit.__init__(self, 'Apple', color)
		self.locate = locate

	def tell(self):
		Fruit.tell(self)
		print 'I am in %s' %self.locate
	
class Banana(Fruit):
	def __init__(self, color, shape):
		Fruit.__init__(self, 'Banana', color)
		self.shape = shape
	def tell(self):
		Fruit.tell(self)
		print 'I am %s' %self.shape
	
a = Apple('Red', 'HeBei')
a.tell();

b  = Banana('Yellow', 'Bend');
b.tell();
